CREATE TABLE [dbo].[StockOut]
(
[StockOutId] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[StockOutDate] [datetime] NOT NULL,
[TotalAmount] [decimal] (12, 0) NOT NULL,
[PreparedBy] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Remark] [nvarchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsComplete] [bit] NOT NULL CONSTRAINT [DF_Output_IsComplete] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StockOut] ADD CONSTRAINT [PK_StockOut] PRIMARY KEY CLUSTERED  ([StockOutId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StockOut] ADD CONSTRAINT [FK_StockOut_WebUser] FOREIGN KEY ([PreparedBy]) REFERENCES [dbo].[WebUser] ([UserId])
GO
